package com.kmxd.ams.client.use.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 推送档案表
 *
 * @author nickbi
 * @since 2023-01-11
 */
@Data
@ColumnWidth(15)
@HeadRowHeight(15)
@ContentRowHeight(15)
@HeadStyle
@HeadFontStyle(fontHeightInPoints = 12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 10)
@ExcelIgnoreUnannotated
@Schema(description = "推送档案表对象")
public class UsePushDetailListVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "主键")
  private Long id;

  @Schema(description = "全宗id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "全宗id")
  private Long fondsId;

  @Schema(description = "推送id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "推送id")
  private Long pushId;

  @Schema(description = "档案来源 1归档库 2专题")
  @ExcelProperty(value = "档案来源 1归档库 2专题")
  private Integer type;

  @Schema(description = "档案类型id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "档案类型id")
  private Long archTypeId;

  @Schema(description = "档号")
  @ExcelProperty(value = "档号")
  private String archCode;

  @Schema(description = "表名")
  @ExcelProperty(value = "表名")
  private String tableId;

  @Schema(description = "档案编号")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "档案编号")
  private Long archId;

  @Schema(description = "档案题名")
  @ExcelProperty(value = "档案题名")
  private String archTitle;

  @Schema(description = "密级")
  @ExcelProperty(value = "密级")
  private String security;

  @Schema(description = "创建人 关联用户表主键")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "创建人 关联用户表主键")
  private Long createBy;

  @Schema(description = "创建时间 创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ColumnWidth(20)
  @ExcelProperty(value = "创建时间 创建时间")
  private Date createTime;

  @Schema(description = "最后一次修改人 关联用户表主键")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "最后一次修改人 关联用户表主键")
  private Long updateBy;

  @Schema(description = "最后一次修改时间 最后一次修改时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ColumnWidth(20)
  @ExcelProperty(value = "最后一次修改时间 最后一次修改时间")
  private Date updateTime;

  @Schema(description = "删除标识：0未删除,1已删除")
  @ExcelProperty(value = "删除标识：0未删除,1已删除")
  private Long delFlag;

  @Schema(description = "全宗名称")
  private String fondsName;

  @Schema(description = "门类名称")
  private String archTypeName;

  @Schema(description = "年度")
  private Integer year;

  @Schema(description = "实体(份)")
  private Integer fillingNum;

  @Schema(description = "电子文件数量")
  private Integer filesNum;

  /** 收藏标志 */
  @Schema(description = "收藏标志")
  private Boolean collectFlag;
  /** 借阅车标志 */
  @Schema(description = "借阅车标志")
  private Boolean borrowCarFlag;

  @Schema(description = "通用权限")
  private Integer authType;
}
